package demo1;

public class Test {
    public static void main(String[] args) {
        int count1=0;
        int count2=0;
        for(int i=1;i<=2024;i++){
            if(test(i)==true){
                count2++;
                if(2024%i==0){
                    count1++;
                }
            }
        }

        System.out.println(count1);
        System.out.println(count2);
    }

    public static boolean test(int n) {
        if(n<3){
            return true;
        }
        for(int i=2;i<n;i++){
            if(n%i==0){
                return false;
            }
        }
        return true;
    }
}
